Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NGeometry2D Class / GetNearestPoint Method / GetNearestPoint(NPoint[],NPoint) Method
Array of points.
point whose nearest point to return


In This Topic
    GetNearestPoint(NPoint[],NPoint) Method
    In This Topic
    Gets the point in the specified array, which is nearest to the specified point. If array is empty returns the point itself.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetNearestPoint( _
       ByVal points() As NPoint, _
       ByVal pt As NPoint _
    ) As NPoint
    'Usage
     
    
    Dim points() As NPoint
    Dim pt As NPoint
    Dim value As NPoint
     
    value = NGeometry2D.GetNearestPoint(points, pt)
    public static NPoint GetNearestPoint( 
       NPoint[] points,
       NPoint pt
    )

    Parameters

    points
    Array of points.
    pt
    point whose nearest point to return
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also